﻿using System.Web.UI;
using Company.Merchandising.BusinessLayer.DataEntities;

namespace WebApplication.Code
{
	public class EntityUserControl : UserControl
	{
		private MerchModelEntities _modelEntities;

		public MerchModelEntities ModelEntities
		{
			set
			{
				_modelEntities = value;
			}

			protected get
			{
				if (_modelEntities == null)
				{
					_modelEntities = new MerchModelEntities();
				}

				return _modelEntities;
			}
		}

	}
}
